package com.rankeiot.demo;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.config.AbstractFactoryBean;
import org.springframework.cache.Cache;
import org.springframework.cache.support.NoOpCache;
import org.springframework.stereotype.Component;

//@Component
public class CacheFactory extends AbstractFactoryBean<Cache> {
//    @Override
//    public Cache getObject() throws Exception {
//        return new NoOpCache("xxxx");
//    }

    @Override
    public Class<?> getObjectType() {
        return Cache.class;
    }

    @Override
    protected Cache createInstance() throws Exception {
        return null;
    }
}
